package fr.tocchisu.grepolis.model;

import org.apache.commons.lang.StringUtils;

public class AttackUnit {
	private int number;
	private Unit unit;

	public AttackUnit(int number, Unit unit) {
		super();
		this.number = number;
		this.unit = unit;
	}

	public int getNumber() {
		return number;
	}

	public Unit getUnit() {
		return unit;
	}

	@Override
	public String toString() {
		return "\"" + StringUtils.lowerCase(unit.name()) + "\":" + number;
	}
}
